package com.cy.controller;

import com.cy.domain.JSONResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ExceptionController {

    @RequestMapping("/Computer/{i}/{j}")
    public Object doComputer(@PathVariable Integer i,@PathVariable Integer j){

        return new JSONResult(1,"计算成功啦", i / j);
    }
}
